package com.gold.gauss.model;

import org.apache.ibatis.annotations.Property;
import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created by Gary on 2019-12-24.
 *
 * @author Gary
 * @version 0.0.1
 * @date 2019-12-24
 * @since 0.0.1
 */
//@Alias("goldUser")
public class GoldUser implements Serializable {
    private static final long serialVersionUID = -6381761856892181195L;
    private Long id;
    @NotBlank
    @Length(max = 200)
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "GoldUser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
